package com.dsg.kf.socket.service;

import java.util.concurrent.Future;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import com.corundumstudio.socketio.SocketIOClient;
import com.dsg.kf.socket.interfa.SocketService;
import com.dsg.kf.socket.message.MessageBase;
import com.dsg.kf.socket.message.User;
/**
 * 测试 socket service 执行业务
 * @author pacy.pan
 *
 */
@Service("testService")
public class TestService implements SocketService{

	@Async
	public Future<Object> doSocketService(MessageBase base, SocketIOClient client) {
		if(base!=null){
			User user = (User)base;
		}
		return null;
	}

}
